package com.ticket.system.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@ApiModel(description = "微信登录对象")
public class WxLoginBody {
    @NotNull(message = "openId不可以为空")
    @ApiModelProperty(value = "openId")
    @Size(min = 10, max = 40, message = "openId长度不能超过40个字符")
    private String openId;
    @ApiModelProperty(value = "手机号")
    @NotNull(message = "phone不可以为空")
    @Size(min = 11, max = 11, message = "手机号长度不能超过11个字符")
    private String phone;
    @ApiModelProperty(value = "头像")
    private String avatar;
    @NotNull(message = "appId不可以为空")
    @ApiModelProperty(value = "appId")
    @Size(min = 10, max = 40, message = "appId长度不能超过40个字符")
    private String appId;
    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }



    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

}
